package org.paradise.dms.services.impl;

import org.apache.log4j.Logger;
import org.paradise.dms.dao.impl.ApartmentDAOImpl;
import org.paradise.dms.dao.impl.DormitoryDAOImpl;
import org.paradise.dms.pojo.Apartment;
import org.paradise.dms.services.BuildingsMgrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dheaven.framework.dao.DaoException;

@Service
public class BuildingsMgrServiceImpl implements BuildingsMgrService {
	@SuppressWarnings("unused")
	private static Logger log = Logger.getLogger(BuildingsMgrServiceImpl.class);

	// @Autowired
	// private BuildingsMgrDAOImpl buildingsMgrDAOImpl;

	@Autowired
	private ApartmentDAOImpl apartmentDAOImpl;
	@Autowired
	private DormitoryDAOImpl dormitoryDAOImpl;

	public String insertApartment(Apartment apartment) {
		return apartmentDAOImpl.insertApartment(apartment);
	}

	public String insertDormitoryInfo(String jArray) throws DaoException {
		return dormitoryDAOImpl.insertDormitory(jArray);
	}

}
